package com.itHsuSE.demo8;

import javax.swing.*;

/**
 * @author Hsu琛君珩
 * @ClassName:Test1
 * @date 2023-12-19
 * @apiNote
 * @Version: v1.0
 */

public class Test1 {
    public static void main(String[] args){
        JFrame jf=new JFrame("标题");
        jf.setBounds(400,300,300,300);
        jf.setVisible(true);
        jf.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

        JDialog jd=new JDialog(jf,"小标题");
        jd.setBounds(400,300,200,200);
        jd.setVisible(true);
        jd.setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
    }
}
